import { pageTo } from 'nc-lightapp-front';

const appCode = pageTo.getSearchParam('c');
const pageCode = pageTo.getSearchParam('p');

const config = {
    appcode: appCode,
    pagecode: pageCode,
    headcode: 'query',
    bodycode: 'list',
    multiLang: {
        moduleId: '201104-DJGL',
        domainName: 'erm'
    },
    pageButtonArea: 'page',
    innerButtonArea: 'table_inner',
    pageSize: 100,
    dataSourceCommon: 'erm.bmc.bl',
    dataSource: 'erm.bmc.bl.list',
    searchCache: 'erm.bmc.bl.list.searchCache',
    cache: 'erm.bmc.bl.list.cache',
    add: {
        url: '../../../../erm/expenseaccount/expenseaccount/card/index.html',
        appcode: appCode,
        pagecode: pageCode.replace('_LIST', '_C')
    },
    pull: {
        url: '../../../../erm/expenseaccount/expenseaccount4Pull/card/index.html#/pull?status=add&',
        info: {
            appcode: '201102CZBX',
            pagecode: '201102CZBX_card',
            topagecode: '201102CZBX_C'
        }
    }
};

export default config;
